//
//  UIView+Frame.m
//  BaiSi
//
//  Created by 李善武 on 16/5/10.
//  Copyright © 2016年 李善武. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)

- (void)setLsw_width:(CGFloat)lsw_width{
    
    CGRect rect = self.frame;
    rect.size.width = lsw_width;
    self.frame = rect;
}

- (CGFloat)lsw_width{
   
    return self.frame.size.width;
}

- (void)setLsw_height:(CGFloat)lsw_height{

    CGRect rect = self.frame;
    rect.size.height = lsw_height;
    self.frame = rect;
}

- (CGFloat)lsw_height{

    return self.frame.size.height;
}

- (void)setLsw_x:(CGFloat)lsw_x{
    
    CGRect rect = self.frame;
    rect.origin.x = lsw_x;
    self.frame = rect;
}

- (CGFloat)lsw_x{
    
    return self.frame.origin.x;
}

- (void)setLsw_y:(CGFloat)lsw_y{
   
    CGRect rect = self.frame;
    rect.origin.y = lsw_y;
    self.frame = rect;
}

- (CGFloat)lsw_y{
    
    return  self.frame.origin.y;
}
@end
